<?php

return CMap::mergeArray(
	require(dirname(__FILE__).'/main.php'),
	array(

		'modules'=>array(
			// uncomment the following to enable the Gii tool
			
			'gii'=>array(
				'class'=>'system.gii.GiiModule',
				'password'=>'1qazxsw2',
				// If removed, Gii defaults to localhost only. Edit carefully to taste.
				'ipFilters'=>array('127.0.0.1','::1'),
			),
			
		),

		'components'=>array(
			'fixture'=>array(
				'class'=>'system.test.CDbFixtureManager',
			),
		 
		 
			'db'=>array(
				'connectionString' => 'mysql:host=localhost;dbname=sim',
				'emulatePrepare' => true,
				'username' => 'romejiang',
				'password' => '1qazxsw2',
				'charset' => 'utf8mb4',
				//'initSQLs'=>'SET NAMES utf8mb4;',
			),
			'log'=>array(
				'class'=>'CLogRouter',
				'routes'=>array(
					array(
						'class'=>'CFileLogRoute',
						'levels'=>'error, warning',
					),
					// uncomment the following to show log messages on web pages
					/*
					array(
						'class'=>'CWebLogRoute',
					),
					*/
					// array(  
			  //           'class'=>'CWebLogRoute',  
			  //           'levels'=>'trace',     //级别为trace  
			  //           'categories'=>'system.db.*' //只显示关于数据库信息,包括数据库连接,数据库执行语句  
			  //       ),
				),
			),
		),

		'params'=>array(
			// this is used in contact page
			'adminEmail'=>'webmaster@example.com',
			'pushserver'=>1,
			'private_key'=>'tx-salt',
			'env'=>'test',
		),
	)
);



